﻿using System.Windows;
using Tiny.Imaging.Filter.BaseFilter;
using Tiny.Imaging.Filter.PointFilter;

namespace Tiny.Imaging.Filter.EffectFilter
{
    public class PolaroidFilter : BaseFilterCollection
    {
        public PolaroidFilter(int width, int height)
        {
            Add(new CurvesFilter(RgbChannel.R, new Point(0, 0), new Point(130, 62), new Point(167, 245),
                                 new Point(255, 255)));
            Add(new CurvesFilter(RgbChannel.G, new Point(0, 0), new Point(95, 56), new Point(165, 205),
                                 new Point(255, 255)));
            Add(new CurvesFilter(RgbChannel.B, new Point(0, 0), new Point(70, 132), new Point(172, 105),
                                 new Point(255, 255)));
            Add(new CurvesFilter(RgbChannel.Rgb, new Point(0, 0), new Point(65, 103), new Point(190, 154),
                                 new Point(255, 255)));
            Add(new SaturationFilter(-20));
            Add(new VignetteFilter(width, height, 80, 24));
        }
    }
}